package com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.biz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.biz.service.KpiDoctorService;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.KpiConditionDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.KpiDoctorDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.PaginationQueryDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.intergration.dao.KpiDoctorDAO;

@Component("kpiDoctorService")
public class KpiDoctorServiceImpl implements KpiDoctorService {
	@Autowired
	private KpiDoctorDAO kpiDoctorDAO;

	/**
	 * 查询指标数据
	 * 
	 * @param condition
	 * @return
	 */
	@Override
	public List<KpiDoctorDTO> queryKpi(KpiConditionDTO condition) {
		List<KpiDoctorDTO> list = kpiDoctorDAO.getKpiData(condition);
		return list;
	}

	@Override
	public List<KpiDoctorDTO> queryKpiAnalyze(PaginationQueryDTO condition) {
		// TODO Auto-generated method stub
		return kpiDoctorDAO.getKpiAnalyzeData(condition);
	}

	@Override
	public int queryKpiAnalyzeCount(KpiConditionDTO condition) {
		// TODO Auto-generated method stub
		return kpiDoctorDAO.getKpiAnalyzeCount(condition);
	}

}
